-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[codemod] Fix incorrect slot name in tab-props.js (scrollButton → scrollButtons) #47215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[codemod] Fix incorrect slot name in tab-props.js (scrollButton → scrollButtons) #47215
Conversation
Netlify deploy previewhttps://deploy-preview-47215--material-ui.netlify.app/ Bundle size report
|
|
@ZeeshanTamboli @sai6855 Please check this PR. |
|
@siriwatknp I am confused. Should it be scrollButton or scrollButtons. In MUI Docs, it is scrollButtons but ideally it should be scrollButton |
In the code it's plural: https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Tabs/Tabs.js#L575C63-L575C76 |
|
@ZeeshanTamboli I tried pushing the empty commit but the CI is not getting triggered |
|
@siriwatknp There's a lot of inconsistency here.
|
Summary
This PR fixes an incorrect slot name in the
mui-codemodtransformer forTabsprops.In
tab-props.js, the codemod currently movesTabScrollButtonPropsinto a slot namedscrollButton(singular).However, according to the Tabs API, the correct slot is
scrollButtons(plural).